package com.qf.openapi.web.master.dao;

import com.qf.openapi.web.master.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    public User getUserById(@Param("id") Integer id);


    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    User getUserByName(@Param("username") String username);

    /**
     * 新增用户数据
     * @param user
     */
    void insertUser(User user);


    Integer getTotalCount();

    List<User> getUserByPage(@Param("start") int start, @Param("limit") Integer limit);
}
